﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.UI;

public class SharePage : EventManager
{
    public Button WXShareBtn;
    public Button friendsShareBtn;
    public Button closeBtn;

    public override void InformationSetting()
    {
        AddListenerToButton(WXShareBtn, ShareBtnClick);
        AddListenerToButton(friendsShareBtn, FrendsShareBtnClick);
        AddListenerToButton(closeBtn, Des);
    }

    void ShareBtnClick()
    {
        LoginAndShare.Controller.OnClickShared(0,URLConst.ShareUrl);
        Des();
    }
    void FrendsShareBtnClick()
    {
        LoginAndShare.Controller.OnClickShared(1,URLConst.ShareUrl);
        Des();
    }
    private void Des()
    {
        Destroy(this.gameObject);
    }
}
